import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/V11102/:msg',
    name: 'V11102',
    component: () => import('../everyday/V11102.vue'),
    // children: [
    //   {
    //     path: '/V11103',
    //     name: 'V11103',
    //     component: () => import('../everyday/V11103.vue')
    //   },
    // ]
  },
  {
    path: '/V11103',
    name: 'V11103',
    component: () => import('../everyday/V11103.vue'),
    // beforeEnter: (to, from, next) => {
    //   // console.log(to)
    //   // console.log(from)
    //   next()
    // }
  },

]

const router = new VueRouter({
  routes
})

// router.beforeEach((to, from, next) => {
//   console.log(to)
//   console.log(from)
//   next()
// })

// router.afterEach((to, from) => {
//   console.log(to)
//   console.log(from)
// })

export default router
